﻿Type=Activity
Version=5.5
ModulesStructureVersion=1
B4A=true
@EndOfDesignText@
#Region  Activity Attributes 
	#FullScreen: False
	#IncludeTitle: True
#End Region

Sub Process_Globals
	'These global variables will be declared once when the application starts.
	'These variables can be accessed from all modules.

End Sub

Sub Globals
	'These global variables will be redeclared each time the activity is created.
	'These variables can only be accessed from this module.
	Private sf As suanfa
	Private edtlastno As EditText
	Private btnyuce As Button
	Private edtresult As EditText
	Private cbdirect As CheckBox
	Private sLast as String
End Sub

Sub Activity_Create(FirstTime As Boolean)
	'Do not forget to load the layout file created with the visual designer. For example:
	Activity.LoadLayout("hmyc")
	reSize.SetSize(Activity,480,320)
	sf.Initialize
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

Sub btnyuce_Click
	If edtlastno.Text.Length>0 Then sLast=edtlastno.Text.Trim
	edtresult.Text=sLast&CRLF&sf.replacenotogz(sLast,cbdirect.Checked)
	edtlastno.Text=""
End Sub
Sub cbdirect_CheckedChange(Checked As Boolean)
	btnyuce_Click
End Sub